package com.dx.dao;

import java.util.List;

import com.dx.pojo.Finding;
import com.dx.pojo.FindingDetail;
import com.dx.pojo.Findingdata;
import com.dx.pojo.ItemCondition;
import com.dx.pojo.ItemsCategory;
import com.dx.pojo.ItemsDetail;
import com.dx.pojo.LosingDeal;
import com.dx.pojo.LosingInfo;
import com.dx.pojo.Losingdata;
import com.dx.pojo.PickingDeal;
import com.dx.pojo.PickingInfo;
import com.dx.pojo.UserRelative;
import com.dx.pojo.losingItemInfo;
import com.dx.pojo.pickItemInfo;

public interface ItemsDao {
	List<ItemsCategory> itemsCate();
	
	int insertdetailinfo(ItemsDetail itemsDetail);
	
	int selectcountalllosing(LosingInfo losinginfo);
	
	List<LosingInfo> selectlosinginfo(LosingInfo losinginfo);
	
	int selectcountallpicking(PickingInfo pickinginfo);
	
	List<PickingInfo> selectpickinginfo(PickingInfo pickinginfo);
	
	String itemsCatename(int id);
	
	//添加失物信息
	int insertlosinginfo(LosingInfo losinginfo);
	//添加寻物信息
	int insertPickingInfo(PickingInfo pickinginfo);
	
	pickItemInfo selectdetailpicking(String id);
	
	losingItemInfo selectdetaillosing(String id);
	
	List<LosingInfo> selectuserlosing(LosingInfo losinginfo);
	
	int selectcountuserlosing(LosingInfo losinginfo);
	
	List<PickingInfo>  selectuserpicking(PickingInfo pickinginfo);
	
	int selectcountuserpicking(PickingInfo pickinginfo);
	
    int selectcountallunlosing(LosingInfo losinginfo);
	
	List<LosingInfo> selectunlosinginfo(LosingInfo losinginfo);
	
	int selectcountallunpicking(PickingInfo pickinginfo);
	
	List<PickingInfo> selectunpickinginfo(PickingInfo pickinginfo);
	
	int updatelosingcheckdeal(LosingDeal losingDeal);
	
	int updatepickingcheckdeal(PickingDeal pickingDeal);
	
	List<Losingdata> losingdatashow();
	
	List<Losingdata>  pickingdatashow();

	List<UserRelative>  userrelative(String id);
	
	int confirmitem(String id);
	
	List<PickingInfo>   userrelpic(UserRelative userRelative);
	
	int countuserrelpic(UserRelative userRelative);
	
	List<PickingInfo> confirmbycondition(ItemCondition itemCondition);
	
	int countconfirmbycondition(ItemCondition itemCondition);
	
	int  insertfinding(Finding finding);
	
	List<FindingDetail> querybyfinding(FindingDetail findingDetail);
	
	int countquerybyfinding(FindingDetail findingDetail);
	
	List<Findingdata> queryallfinding();
	
	int cancelloseitem(String id);
	
	int updatelos(ItemsDetail itemsDetail);
	
	int deletelose(String id);
	
	int deletepic(String id);
	
	int updatepic(ItemsDetail itemsDetail);
}
